package com.sunshine.spring.beans.type;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: WeiHong
 * @Date: 2017/3/17 11:15
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("/spring/beans.xml");
        Person p = (Person) ctx.getBean("person");
        System.out.println(p.toString());
    }
}
